<template>
  <div>
    <h2>我是demo-father-son</h2>
    <!-- {{ value }} -->
    {{ aa }}
    {{ bb }}
    <button @click="addfn">点击加</button>
  </div>
</template>
<script>
export default {
  props: {
    // value: {
    //   type: Number,
    //   required: true
    // },
    aa: {
      type: Number,
      required: true
    },
    bb: {
      type: Number,
      required: true
    }
  },
  methods: {
    addfn() {
      // this.$emit('input', this.value + 1)
      this.$emit('update:aa', this.aa + 1)
      this.$emit('update:bb', this.bb + 1)
    }
  }

}
</script>
